wayland: Provide information about scroll devices
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jun 2016 03:14:30 +0000 (23:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jun 2016 18:51:33 +0000 (14:51 -0400)
commit3d0f76801d008facae8aa3b6f0cdf439712775aa
tree3cdfffaf5cb188c7e0a5fc528acf69d327ae893c
parent5264209bf1537682833c689ba96544b9403f87be
wayland: Provide information about scroll devices

The Wayland protocol does not share XI2's wealth of information
about individual devices, but it does provide discriminating
information about the source for scroll events. Pass this on to
the application by creating separate slave devices for these,
and setting them as source device on the scroll events.

These devices can be discriminated by their input-source property:
wheel      - GDK_SOURCE_MOUSE
finger     - GDK_SOURCE_TOUCHPAD
continuous - GDK_SOURCE_TRACKPOINT

https://bugzilla.gnome.org/show_bug.cgi?id=767093

fix up
gdk/wayland/gdkdevice-wayland.c